<?php
/*
 * Created on 2008-5-9
 *
 * File:news.php
 * Author:David Meng
 * Site:http://www.systn.com
 * Email:mdchinese@gmail.com
 *
 */

	$page_title = '站内下载管理';

	$post_link	= 1;			//1 表示可以发布新闻
	
	//提交地址
	$form_src	= 'todo=search';

	$file_dir	= 'data/'.$model.'/';



//删除数据
if ($todo=='del'){
	if ($oDown->del($id,'./'.$file_dir)){
		msg('恭喜，删除数据成功!',$sys_page."?model=$model",3);
	}else{
		msg('抱歉，删除数据失败!',$sys_page."?model=$model",3);
	}
}


//搜索数据
$where = '';
if ($todo=='search' && $keys){
	$where = " WHERE subject LIKE '%$keys%'";
}

	//获取新闻列表
	$info = $oDown->getList($where);
	$data_list = $info['query'];
	$pages = paging($info['info']);

	

	$tpl->set_file($model);
	$fpage = $tpl->r();

?>
